
// 招聘职位
import request from '@/config/axios'
// 
export const positionListAll = () => {//
    return request.get({ url: '/api/enterprise/position/listAll' })
}
export const positionListAlls = (params) => {//
    return request.get({ url: '/api/enterprise/positionRegistration/positionNumber' ,params:params})
}
export const positionList = (params:any) => {//
    return request.get({ url: '/api/enterprise/position/list',params:params })
}
export const positionHeaderList = (params:any) => {//
    return request.get({ url: '/api/enterprise/position/header',params:params })
}
// 招聘职位新增
export const addpositionApi = (params: any) => {
    return request.post({ url: '/api/enterprise/position', data: params })
}
// 招聘职位修改
export const editpositionApi = (params: any) => {
    return request.put({ url: '/api/enterprise/position', data: params })
}
// 招聘职位删除
export const deletepositionApi = (params: any) => {
    return request.delete({ url: '/api/enterprise/position/' + params })
}
export const editPositionStatusApi = (params: any) => {
    return request.post({ url: '/api/enterprise/position/status', data: params })
}
// 下载模板

export const downloadTemplate = () => {
    return request.get({ url: '/api/enterprise/position/downloadTemplate' })
}
// 获取职位详情
export const positionDetail = (params:any) => {//
    return request.get({ url: '/api/enterprise/position/'+params })
}